<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>井字棋游戏</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <div class="container">
        <h1>井字棋游戏</h1>
        
        <div id="status">连接中...</div>
        
        <div id="game" class="hidden">
            <div class="board" id="board">
                <div class="cell" data-index="0"></div>
                <div class="cell" data-index="1"></div>
                <div class="cell" data-index="2"></div>
                <div class="cell" data-index="3"></div>
                <div class="cell" data-index="4"></div>
                <div class="cell" data-index="5"></div>
                <div class="cell" data-index="6"></div>
                <div class="cell" data-index="7"></div>
                <div class="cell" data-index="8"></div>
            </div>
            
            <div class="game-info">
                <div>你的符号: <span id="symbol"></span></div>
                <div>游戏状态: <span id="game-status">等待对手</span></div>
            </div>
            
            <button id="rematch" class="hidden">再来一局</button>
        </div>
        
        <div id="rematch-request" class="hidden">
            <p>对手请求再来一局</p>
            <button id="accept-rematch">接受</button>
            <button id="decline-rematch">拒绝</button>
        </div>
    </div>
    
    <script src="script.js"></script>
</body>
</html>